package net.area80.composer.core
{
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.EventDispatcher;
	
	[Event(name="change", type="flash.events.Event")]
	
	public class Composer extends EventDispatcher
	{
		protected var _actor:DisplayObject;
		
		public function Composer(initObject:DisplayObject)
		{
			_actor = initObject;
		}
		public function get actor ():DisplayObject {
			return _actor;
		}
		public function get actorAsMovieClip ():MovieClip {
			return _actor as MovieClip;
		}
		public function get actorAsSprite ():Sprite {
			return _actor as Sprite;
			
		}
		public function get stage ():DisplayObject {
			return actor.stage;
		}
		public function get root ():DisplayObject {
			return actor.root;
		}
		
	}
}